package com.etc.service;

import java.util.Date;

import com.etc.entity.Goods;
import com.etc.tools.AjaxOperateResponse;
import com.etc.tools.ResponseData;

public interface GoodsService {

	/**
	 * @模糊查询
	 * @param keywords
	 * @param page
	 * @param limit
	 * @return
	 */
	public ResponseData<Goods> getGoodsByLike(String keywords,Date begindate,Date enddate, Integer page, Integer limit);

	/**
	 * @增加
	 * @param goods
	 * @return
	 */
	public AjaxOperateResponse addGoods(Goods goods);
	
	/**
	 * @修改
	 * @param goods
	 * @return
	 */
	public AjaxOperateResponse updateGoods(Goods goods);
	
	
	/**
	 * @删除[物理 逻辑]
	 * @param goodsid
	 * @return
	 */
	public AjaxOperateResponse delGoods(Integer goodsid);
	
	/**
	 * @根据id获取对象
	 * @param goodsid
	 * @return
	 */
	public Goods getGoodsById(Integer goodsid);


}